
<?php
$rows = $news_detail->row();

$image_path = './assets/actuimg/thumbs/' . $rows->img;
if (file_exists($image_path)) {
    $image_path = base_url() . 'assets/actuimg/thumbs/' . $rows->img;
} else {
        $image_path = base_url() . 'assets/noimage.gif';
       }

$datestring = "%d/%m/%Y";
$time = $rows->posted_time;
$mdate = mdate($datestring, $time);
$author = $posted_author->row();

?>


<div id="news_detail_wrapper">
	<div id="news_detail_act">Actualités</div>
	      <ul>
            <li><span class="metadata">Publié par:</span><?php echo $author->username; ?></li>
            <li><span class="metadata"> | Le:</span><?php echo $mdate;?></li>
            <li><span class="metadata"> | Pages vues:</span><?php echo $rows->hits; ?></li>
         </ul>
    	<div id="news_detail_title"><?php echo $rows->title;?></div>
    	<div id="news_detail_header">
    		<table width="100%">
      		<tr>      		  
    				<td width="210px"  ><img width="200px" src="<?php echo $image_path; ?>" border="0" align="center" alt=""/></td>
    				<td valign="top"><?php echo $rows->introtext;?></td>
    			</tr>
    		</table>
    	</div><!--End #news_detail_header-->  

    <div id="news_detail_content">
     
        <p id="news_content">
            <?php echo $rows->content;?>
        </p>
    </div><!--Edn #news_detail_content-->
    
</div><!--End #news_detail_wrapper--> 

